<template>
    <div class="userCenter">
        <div class="breadcrumb-box">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>个人中心</el-breadcrumb-item>
                <el-breadcrumb-item>设置</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="center container td-f">
            <left-nav-bar :active="active"></left-nav-bar>
            <div class="right">
                <div class="line-ti">
                    <div>帮助中心</div>
                </div>
                <div class="list-help">
                    <ul>
                        <router-link :to="`/helpDetail?title=${encodeURIComponent(item.title)}&content=${encodeURIComponent(item.content)}`" v-for="(item,index) in questionList" :key="index"> · {{item.title}}</router-link>
                    </ul>
                </div>
                 <div class="nodata" v-if="questionList.length == 0">
                    <img :src="$global.Image.noCollection" />
                </div>
            </div>
        </div>
        <div style="height: 200px"></div>
    </div>
</template>

<script>
import leftNavBar from "@components/leftNavBar";
import { getUser, getMyMessage, searchQuota,artHelp } from "@api/user";

export default {
    name: "userCenter",
    data() {
        return {
            loading: false,
            active: 9,
            questionList:[],
            userInfo: {},
            messageList: [],
            quotaInfo: "",
            orderStatusNum: {},
            dialogImageUrl: "",
            dialogVisible: false,
        };
    },
    components: {
        leftNavBar,
    },
    methods: {
        // 获取帮助中心列表
        User() {
            let that = this;
            artHelp().then((res) => {
                console.log(res)
                this.questionList = res.data;
            });
        }
    },
    mounted() {
        this.User();
    },
};
</script>
<style >
.el-upload--picture-card {
    width: 88px;
    height: 88px;
    line-height: 88px;
}
.el-upload-list--picture-card .el-upload-list__item {
    width: 88px;
    height: 88px;
}
</style>
<style scoped  rel="stylesheet/scss" lang="scss" scoped>
$color: #da213d;
.userCenter {
    width: 100%;
    height: 100%;

    .center {
        /*width: 70%;*/
        margin: 0 auto;
        display: flex;

        .right {
            width: 1000px;
            margin-left: 32px;
            /*margin-top: 90px;*/
            .line-ti {
                width: 100%;
                border-bottom: 1px solid #dbdbdb;

                > div {
                    color: #da213d;
                    font-size: 18px;
                    font-family: MicrosoftYaHei-Bold;
                    border-bottom: 3px solid $color;
                    width: 72px;
                    line-height: 36px;
                    font-weight: 600;
                }
            }

            .list-help {
                margin-top: 32px;
                ul {
                    a {
                        font-size: 16px;
                        color: #333333;
                        height: 44px;
                        border-bottom: 1px dashed #dbdbdb;
                        line-height: 44px;
                        display: block;
                    }
                }
            }
        }
    }
}
</style>
